package com.bean;

/**
 * Created by Administrator on 2017/5/10 0010.
 * 浦发省/市
 * 地区编码
 */

public class AreaCode {
    private int id;
    private String areacode;        //地区编码
    private String name;            //地区名称
    private int level;              //地区级别（2：省级;3：市级）
    private String p_areacode;      //上级地区编码

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getAreacode() {
        return areacode;
    }

    public void setAreacode(String areacode) {
        this.areacode = areacode;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getLevel() {
        return level;
    }

    public void setLevel(int level) {
        this.level = level;
    }

    public String getP_areacode() {
        return p_areacode;
    }

    public void setP_areacode(String p_areacode) {
        this.p_areacode = p_areacode;
    }

    public boolean isProvinceCode() {
        return level == 2;
    }
}
